<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2025/1/7
  Time: 17:21
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<h1>使用Get方式提交数据</h1>
<form method="get" action="/ServletPractice_war_exploded/fromServlet">
    <label>用户名:</label>
    <input type="text" name="userName">
    <label>密码:</label>
    <input type="text" name="password">
    <input type="submit" value="提交">
</form>
<h1>使用Post的方式提交数据</h1>
<form method="post" action="/ServletPractice_war_exploded/fromServlet">
    <label>用户名:</label>
    <input type="text" name="userName">
    <label>密码:</label>
    <input type="text" name="password">
    <label>爱好</label>
    <input type="checkbox" name="hobby" value="踢足球"> 踢足球
    <input type="checkbox" name="hobby" value="打篮球"> 打篮球
    <input type="checkbox" name="hobby" value="打羽毛球"> 打羽毛球
    <input type="submit" value="提交">
</form>
</body>
</html>
